package com.wx.business.trade;


import java.util.List;
import java.util.Map;

import com.eachonline.core.Pagination;
import com.eachonline.service.GenericService;
import com.wx.model.IxbTradeRecord;
import com.wx.model.IxbTradeRecordExample;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wemo
 * @since 2018-08-11
 */
public interface IxbTradeRecordService extends GenericService<IxbTradeRecord, IxbTradeRecordExample, String> {
	
	/**
	 * 交易支付完成回调
	 * @param tradeNo
	 * @throws Exception
	 */
	public void  afterTradeStatus(String tradeNo ,String thirdOrderNo) throws Exception;
	
	/**
	 * 交易记录创建
	 * @param tradeNo
	 * @throws Exception
	 */
	public IxbTradeRecord  createTradeRecord(String buyerId,String buyerName,String courseId,String courseName,double tradeFee,String orderNo) throws Exception;

	
	/**
	 * 交易记录创建
	 * @param tradeNo
	 * @throws Exception
	 */
	public Pagination<Map<String,Object>>  queryCommTradeRecordByPage(int start ,int pageSize,IxbTradeRecordExample ext);

}
